﻿import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import FluentUI 1.0

FluLauncher {
    id: app
    Component.onCompleted: {
        FluApp.init(app)
        FluApp.windowIcon = "qrc:/logo.ico"
        //SETTING//
        FluTheme.darkMode = SettingsHelper.getDarkMode()
        FluTheme.nativeViewType = SettingsHelper.getNavigationViewMode()
        //路由转发器选择不同项目业务模板//
        FluRouter.routes = {
            "/App":"qrc:/TowerDevices.qml",
            "/SerialDebugger":"qrc:/SerialDebuggerPage.qml"
        }
        FluTheme.animationEnabled = true
        FluRouter.navigate("/App")
    }
}
